function CL_Select( fid, rootpath )
{
	var ctrlValue = document.getElementById( fid + "_value" );
	var ctrlText = document.getElementById( fid + "_text" );
	if( ctrlValue == null || ctrlText == null ) return false;

	var amUrl = rootpath;
	amUrl += "admin/Private/cms/main/browser.aspx";
	amUrl += "?controlID=" + fid;
	
	var w = window.open(amUrl, "contentMan", "width=900, height=600, resizable=yes", true);
	if( w.focus ) w.focus();
	return false;
}
function CL_SetValue( fid, v, t )
{
	var ctrlValue = document.getElementById( fid + "_value" );
	var ctrlText = document.getElementById( fid + "_text" );
	if( ctrlValue == null || ctrlText == null ) return;
	
	ctrlValue.value = v;
	ctrlText.value = t;
}
function CL_Clear( fid )
{
	var ctrlValue = document.getElementById( fid + "_value" );
	var ctrlText = document.getElementById( fid + "_text" );
	
	if( ctrlValue == null || ctrlText == null ) return false;

	ctrlValue.value = "-1";
	ctrlText.value = "Nothing Selected";
	return false;
}
